

package com.zdkj.subway.stm.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 售票员结算明细表（子表）
 *
 * @author chenbo
 * @date 2020-02-01 19:24:00
 */
@Data
@TableName("sw_st_conductor_settle_details")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "售票员结算明细表（子表）")
@Builder
public class SwStConductorSettleDetail extends Model<SwStConductorSettleDetail> {
    private static final long serialVersionUID = 1L;
    /**
     * 唯一标识
     */
    @TableId
    @ApiModelProperty(value = "唯一标识")
    private Integer id;
    /**
     * 主表关联ID
     */
    @ApiModelProperty(value = "主表关联ID")
    private Integer relationId;
    /**
     * 票种（营销车票，日票，应急纸票，预制单程票）
     */
    @ApiModelProperty(value = "票种（营销车票，日票，应急纸票，预制单程票）")
    private Integer ticketType;

    /**
     * 票种名称
     */
    @ApiModelProperty("票种名称")
    private String ticketName;
    /**
     * 票价
     */
    @ApiModelProperty(value = "票价")
    private BigDecimal ticketPrice;
    /**
     * 废票张数
     */
    @ApiModelProperty(value = "废票张数")
    private Integer scrapTicketNum;

    /**
     * 售出张数
     */
    @ApiModelProperty(value = "售出张数")
    private Integer sellOutNum;

    /**
     * 现金售出张数
     */
    @ApiModelProperty(value = "现金售出张数(张)")
    private Integer cashSellNum;
    /**
     * 现金售出金额
     */
    @ApiModelProperty(value = "现金售出金额（元）")
    private BigDecimal cashSellAmount;
    /**
     * 支付宝售出张数
     */
    @ApiModelProperty(value = "支付宝售出张数（张）")
    private Integer alipaySellNum;
    /**
     * 支付宝售出金额
     */
    @ApiModelProperty(value = "支付宝售出金额（元）")
    private BigDecimal alipaySellAmount;
    /**
     * 微信售出张数
     */
    @ApiModelProperty(value = "微信售出张数（张）")
    private Integer wechatSellNum;
    /**
     * 微信售出金额
     */
    @ApiModelProperty(value = "微信售出金额（元）")
    private BigDecimal wechatSellAmount;
    /**
     * 微信售出张数
     */
    @ApiModelProperty(value = "微信售出张数（张）")
    private Integer bankTransferNum;
    /**
     * 微信售出金额
     */
    @ApiModelProperty(value = "微信售出金额（元）")
    private BigDecimal bankTransferAmount;
    /**
     * 折扣
     */
    @ApiModelProperty(value = "折扣")
    private String discount;
    /**
     * 售出张数
     */
    @ApiModelProperty(value = "售出金额")
    private BigDecimal sellOutAmount;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;
    /**
     * 删除标志 1：已删除 0：未删除
     */
    @TableLogic
    @ApiModelProperty(value = "删除标志 1：已删除 0：未删除")
    private String delFlag;
}
